<?php
namespace catchAdmin\stock\model\search;

trait BoxSearch
{
    public function searchTrayIdAttr($query, $value, $data)
    {
        return $query->whereLike('b.tray_id', $value);
    }
    public function searchBoxIdAttr($query, $value, $data)
    {
        return $query->whereLike('b.box_id', $value);
    }
    public function searchSplitStatusAttr($query, $value, $data)
    {
        return $query->where('b.split_status', $value);
    }
}